package sk.xorty.endpoints.gateway;

import sk.xorty.domain.Trade;

import java.util.concurrent.Future;

/**
 * Non-blocking interface for processing trade.
 * Decouples from Spring Integration classes.
 */
public interface TradeGatewayAsync {
    Future<Trade> processTrade(Trade trade);
}
